﻿namespace Best.SmartCms.Dto.Request
{
    /// <inheritdoc cref="IPagedRequest"/>
    public class PagedRequest : IRequest, IPagedRequest
    {
        /// <inheritdoc cref="IPagedRequest"/>
        public int PageIndex { get; set; }

        /// <inheritdoc cref="IPagedRequest"/>
        public int PageSize { get; set; }

        /// <summary>
        /// 排序字段
        /// </summary>
        public string SortField { get; set; }

        /// <summary>
        /// 排序规则
        /// </summary>
        public string SortOrder { get; set; }
    }

    /// <summary>
    /// 排序
    /// </summary>
    public enum SortOrder
    {
        /// <summary>
        /// 顺序
        /// </summary>
        Ascend = 0,

        /// <summary>
        /// 倒序
        /// </summary>
        Descend = 1

    }
}